//
//  HomePageView.m
//  teaching
//
//  Created by yishangpin2 on 15/5/12.
//  Copyright (c) 2015年 衣尚品1. All rights reserved.
//

#import "HomePageView.h"
#import "AppDelegate.h"

@implementation HomePageView
{
AppDelegate *delegate;

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (IBAction)click:(id)sender {
    
    delegate=(AppDelegate *)[[UIApplication sharedApplication]delegate];
    
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    UIViewController *left=[storyboard instantiateViewControllerWithIdentifier:@"xueshengziliao"];
    [delegate.HomePage.navigationController pushViewController:left animated:YES];
}

- (IBAction)clickzhuti:(id)sender {
    delegate=(AppDelegate *)[[UIApplication sharedApplication]delegate];
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    UIViewController *left=[storyboard instantiateViewControllerWithIdentifier:@"zhutiluntan"];
    [delegate.HomePage.navigationController pushViewController:left animated:YES];
}
@end
